package edu.paper.job.service;

import java.io.Serializable;
import java.util.List;

import edu.paper.job.domain.Employee;

/**
 * 雇佣关系业务逻辑接口
 * @author bowen
 *
 */
public interface EmployeeService {
	public List<Employee> find(Employee employee);		//带条件查询，可以为空，为空时查询所有
	public Employee get(Serializable id);		//查询一个
	public void insert(Employee employee);		//保存
	public void update(Employee employee);		//更新数据
	public void deleteById(Serializable id);		//删除一个
	public void delete(Serializable ids[]);		//删除一批
	
	/**
	 * 列出求职者未删除的求职进展
	 * @param employee
	 * @return list
	 */
	public List<Employee> listApplicantEmployee(Employee employee);
	
	/**
	 * 列出企业未删除的应聘信息
	 * @param employee
	 * @return	list
	 */
	public List<Employee> listCompanyEmployee(Employee employee);
	
	/**
	 * 添加一个雇佣关系
	 * @param employee
	 */
	public void insertEmployee(Employee employee);
	
	/**
	 * 求职者删除求职进展
	 * @param employee
	 */
	public void deleteEmployeeByApplicant(Employee employee);
	
	/**
	 * 企业删除求职进展
	 * @param employee
	 */
	public void deleteEmployeeByCompany(Employee employee);
	
	/**
	 * 拒绝求职者
	 * @param employee
	 */
	public void refuseApplicant(Employee employee);
	
	/**
	 * 同意求职者
	 * @param employee
	 */
	public void agreeApplicant(Employee employee);
	
}
